<template>
  <div class="workshops_container">
    <!-- <dv-loading v-if="loading"></dv-loading> -->
    <list-header
      :type="type"
      :title="title"
      icon="cogs"
      searchplaceholder="请输入设备名称/编号"
      selectplaceholder="请选择安装地点"
      @on-search="SearchMthods"
      @on-index="resetMethods"
      :dateSel="true"
      :fixIt="true"
    />
    <div class="workshops_main">
      <c-tbale
        @delHandle="delHandle"
        :columns="columns"
        :tableData="tableData"
        :tableHeight="tableHeight"
      />
      <div class="page_con">
        <el-pagination
          @current-change="currentchange"
          @prev-click="currentchange"
          @next-click="currentchange"
          :background="true"
          layout="prev, pager, next"
          :total="totalCount"
          :hide-on-single-page="totalCount < 2 ? true : false "
        >
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
import listHeader from "@/components/listHeader/index";
import cTbale from "../../../components/tablePage/tablePage";
import minix from "../../../mixins/table";
export default {
  components: {
    listHeader,
    cTbale,
  },
  mixins: [minix],
  data(){
    return{
      type: "tenance",
      indexurl:"tenancePage",
      delurl: "tenanceDel",
      title:"设备检修",
      columns:[
        { text: "安装地点", prop: "SITE", width: '12%' },
        { text: "日期", prop: "createTime", width: '12%' },
        { text: "设备", prop: "EQUIP_NAME", width: '12%' },
        { text: "维修人", prop: "SERVICEMAN", width: '12%'},
        { text: "故障描述", prop: "DESCRIPTION", width: '15%' },
        { text: "是否已修好", prop: "STATUS", width: '10%' },
        { text: "备注", prop: "REMARK", width: '12%' }
      ],
    }
  },
};
</script>

<style>
</style>